<?
/**
 * VoiceOne Settings/Plugin
 *
 * Frontend to provide access to the plugin system in voiceone.
 * @package voiceone
 * @subpackage  settings_plugin
 * @todo Create styles for various elements like buttons in the stylesheet instead of hardcoding. See buttons in form plugin  up/download
 */

  include ("../../admin/config/cfg.php");
  global $cwlang, $cwLanguage, $absBasePath;
  
   
  //================ MAIN CONTENTS ================
  ob_start();
  $sel="main"; include("navigation.php");
  ?>
  
  <div class="SectionHeader">
    <?=$alert?>
    <h1><?=T_("Plugin Information")?></h1>
  </div>
  <p class="blockintro"><?=T_("<h1>The following options are available via the plugin system</h1>
  <h2>Manage existing plugins:</h2>
  <ul>
    <li>Activate/ Deactivate a plugin</li>
    <li>Delete a Plugin</li>
    <li>Export a Plugin</li>
    <li>Import a Plugin</li>
    <li>Get information about a plugin</li>
  </ul>
  <h2>Create new plugins:</h2>
  <ul>
    <li>Create plugin from scratch</li>
    <li>Create plugin from existing plugin</li>
  </ul>")?></p>
  
  <?
  $contents=ob_get_contents();
  ob_end_clean();

  //================ SIDEBAR ================
  ob_start(); 
  ?>
        <div class="Sidebar">
          <h1><?=T_("Information")?></h1>
          <p><?=T_("<p>Plugins allow to extend the functionallity of Voiceone.<p>
  <p>A Plugin is a group of Voiceone objects like applications, macros, queues and the like.</p>
  <p>Some objects require other objects to function. For example the audiorecorder application requires the macro audiorecorder.</p>
  <p>The plugin system allows to import, export and create plugins.<p>
  <h5>REPOSITORY</h5>
  <p><img src=\"$relBasePath/public/img/package_add.gif\" /> <a href=\"http://www.voiceone.it/download/plugin/\" target=\"_blank\" >Search in our public repository</a> the already made plugins.</p>")?></p>
        </div>
  <?  
  $sidebar=ob_get_contents();
  ob_end_clean();

  //================ SETTINGS ================

  $smarty->assign("section", "plugin");
  $smarty->assign("subsection", "");
  $smarty->assign("templateType", "TwoColLeft");  //OneCol, TwoColLeft, TwoColRight
  $smarty->assign("contents", $contents);
  $smarty->assign("sidebar", $sidebar);
  $smarty->display('settings.tpl');
?>